<div class="user-r-title clearfix">
    <div class="common-title f-l">
        <a href="javascript:void(0)" class="field">{$data.page_title}</a>
    </div>
</div>
<div class="user-r-content clearfix j-ajax-page">
    <div class="search clearfix" ms-important="vm-search">
        <div class="search-list">
            <span>时间</span>
            <input type="text" ms-duplex="@search_data.begin_time" id="begin_time" placeholder="{$data.begin_time}"> <span>-</span> <input type="text" ms-duplex="@search_data.end_time" id="end_time" placeholder="{$data.end_time}">
        </div>
        {if $data.bm_promoter_type eq 2 || $data.bm_promoter_type eq 3}
        <div class="search-list">
            <span>机构编号</span>
            <input type="text" ms-duplex="@search_data.login_name" placeholder="">
        </div>
        {/if}
        <a href="javascript:void(0)" class="btn btn-primary btn-circle" ms-click="search">搜索</a>
    </div>
    <div class="ajax-block">
        <table class="uc-table">
            <thead>
                <tr>
                    <th>{$bm_two}编号</th>
                    <th>{$bm_two}名称</th>
                    <th>所得礼物{$ticket_name}</th>
                    <th>{$bm_two}游戏手续费</th>
                    <th>平台留存手续费</th>
                    <th>{$bm_one}留存手续费</th>
                    <th>主播留存{$ticket_name}</th>
                    <th>所属{$bm_one}编号</th>
                </tr>
            </thead>
            <tbody>
                {foreach from="$data.list" item="l_item" }
                <tr>
                    <td>{$l_item.p_login_name}</td>
                    <td>{$l_item.p_name}</td>
                    <td>{$l_item.promoter_ticket}</td>
                    <td>{if $l_item.gain_lose}{$l_item.gain_lose}{else}0{/if}</td>
                    <td>{if $l_item.platform_gain}{$l_item.platform_gain}{else}0{/if}</td>
                    <td>{if $l_item.promoter_gain}{$l_item.promoter_gain}{else}0{/if}</td>
                    <td>{$l_item.user_ticket}</td>
                    <td>{$l_item.p_parent_login_name}</td>
                </tr>
                {foreachelse}
                <tr>
                    <td colspan=8>
                        <span>暂无数据</span>
                    </td> 
                </tr>
                {/foreach}
                {if $data.list}
                <tr class="form-body form-total">
                    <td class="content-font">合计</td>
                    <td class="content-font"></td>
                    <td class="content-font">{$data.total_re.promoter_ticket}</td>
                    <td class="content-font">{if $data.total_re.gain_lose}{$data.total_re.gain_lose}{else}0{/if}</td>
                    <td class="content-font">{if $data.total_re.platform_gain}{$data.total_re.platform_gain}{else}0{/if}</td>
                    <td class="content-font">{if $data.total_re.promoter_gain}{$data.total_re.promoter_gain}{else}0{/if}</td>
                    <td class="content-font">{$data.total_re.user_ticket}</td>
                    <td class="content-font"></td>
                </tr>
                {/if}
            </tbody>
        </table>
        <div class="m-page clearfix">
            <div class="m-page-con">
                {$data.page}
            </div>
        </div>
    </div>
</div>
